package com.lds.erp.base;

import com.dph.common.utils.service.Base;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @author hongsir
 * @apiNote
 * @date 2018/10/10 上午11:47
 */
@ApiModel(description = "分页对象")
public class PageVO<T> extends Base {
    private static final long serialVersionUID = -4534083011480869602L;
    @ApiModelProperty(name = "pageNum", value = "当前页")
    private Integer pageNum;
    @ApiModelProperty(name = "pageSize", value = "当前页容量")
    private Integer pageSize;
    @ApiModelProperty(name = "total", value = "记录总数")
    private Long total;
    @ApiModelProperty(name = "list", value = "列表数据")
    private List<T> list;

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
